import { defineStore } from "pinia";
import {ref} from 'vue'
import dayjs from "dayjs";
export interface Ilog {
    msg_id: number,
    message: string,
    dateTime: string,
}
export const LogStore = defineStore("log",() => {
    let logList = ref([
        {
            id: 1,
            message: '欢迎使用网关服务',
            dateTime: dayjs().format('YYYY-MM-DD HH:mm:ss')
        }
    ])
    return {
        logList
    }
})